﻿<?php
session_start();
$mtime = microtime();
$_config = array();
$_config['host'] = 'localhost';
$_config['username'] = 'root';
$_config['password'] = '123456';
$_config['database'] = 'chat';
$_config['port'] = '3306';
/*---
chat
*/
$_chat['referer'] = '60';
$_chat['session_userid'] = 'user_id';
$_chat['session_username'] = 'user_name';

$link = NULL;
$link = mysql_connect($_config['host'],$_config['username'],$_config['password']);
mysql_query("SET NAMES 'UTF8'",$link);
if(!$link){
	echo '数据库不能连接:'.mysql_error();
}else{
	if(!mysql_select_db($_config['database'],$link)){
		echo '无法打开数据库'.mysql_error();
		mysql_close();
	}
}
?>